  -- Prince Malchezaar --
function spell0_15690(pUnit, Event) --@Amplify Damage,n/a--
pUnit:FullCastSpellOnTarget(39095,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15690', 10401, 1)
end
function spell1_15690(pUnit, Event) --@Enfeeble,Heal--
pUnit:FullCastSpellOnTarget(30843,pUnit)
pUnit:RegisterEvent('Sorts_15690', 9434, 1)
end
function spell2_15690(pUnit, Event) --@Shadow Nova,Heal--
pUnit:FullCastSpellOnTarget(30852,pUnit)
pUnit:RegisterEvent('Sorts_15690', 2000, 1)
end
function spell3_15690(pUnit, Event) --@Shadow Word: Pain,Heal--
pUnit:FullCastSpellOnTarget(30898,pUnit)
pUnit:RegisterEvent('Sorts_15690', 18000, 1)
end
function spell4_15690(pUnit, Event) --@Shadow Word: Pain,Heal--
pUnit:FullCastSpellOnTarget(30854,pUnit)
pUnit:RegisterEvent('Sorts_15690', 18000, 1)
end
function spell5_15690(pUnit, Event) --@Sunder Armor,Heal--
pUnit:FullCastSpellOnTarget(30901,pUnit)
pUnit:RegisterEvent('Sorts_15690', 20356, 1)
end
function spell6_15690(pUnit, Event) --@Thrash,Heal--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_15690', 859, 1)
end
function Sorts_15690(pUnit, Event)
choix_sorts_15690 = math.random(0, 6)
if choix_sorts_15690 == 0 then
pUnit:RegisterEvent('spell0_15690', 1, 1)
end
if choix_sorts_15690 == 1 then
pUnit:RegisterEvent('spell1_15690', 1, 1)
end
if choix_sorts_15690 == 2 then
pUnit:RegisterEvent('spell2_15690', 1, 1)
end
if choix_sorts_15690 == 3 then
pUnit:RegisterEvent('spell3_15690', 1, 1)
end
if choix_sorts_15690 == 4 then
pUnit:RegisterEvent('spell4_15690', 1, 1)
end
if choix_sorts_15690 == 5 then
pUnit:RegisterEvent('spell5_15690', 1, 1)
end
if choix_sorts_15690 == 6 then
pUnit:RegisterEvent('spell6_15690', 1, 1)
end
end
function mob15690_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15690', math.random(1500, 3000), 1)
end
function mob15690_Leave(pUnit, Event)
end
function mob15690_Kill(pUnit, Event)
end
function mob15690_Die(pUnit, Event)
pUnit:RemoveEvents();
end
RegisterUnitEvent(15690, 1, 'mob15690_Action')
RegisterUnitEvent(15690, 2, 'mob15690_Leave')
RegisterUnitEvent(15690, 3, 'mob15690_Kill')
RegisterUnitEvent(15690, 4, 'mob15690_Die')
